#!/bin/sh
PREFIX=$PWD/../spawn-fcgi-android-install 
NDK=/home/chenc/workspace/Android/Sdk/ndk-bundle 
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/ 
PLATFORM=$NDK/platforms/android-8/arch-arm/ 
CC=$PREBUILT/bin/arm-linux-androideabi-gcc 
CXX=$PREBUILT/bin/arm-linux-androideabi-g++ 
LDFLAGS=--sysroot=$PLATFORM 
CFLAGS="-I$PLATFORM/usr/include -fPIC" 
CXXFLAGS=$CFLAGS 
LIBS=

CC=$CC CXX=$CXX LDFLAGS=$LDFLAGS CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS LIBS=$LIBS  ./configure --prefix=$PREFIX --host=arm-linux-androideabi --build=i686-pc-linux-gnu 
